package com.gitee.ywj1352;

import java.util.ServiceLoader;

/**
 * @author wenjie.yang
 * @date 3/1/2020 9:43 PM
 */
public class SpiDemo {
    public static void main(String[] args) {
        ServiceLoader<Run> runs = ServiceLoader.load(Run.class);
        for (Run run:runs){
            String address = run.run("上海");
            System.out.println(address);
        }

    }
}
